package com.qcby.dao;

import com.qcby.entity.UserIntegral;
import org.apache.ibatis.annotations.Param;

public interface UserIntegralMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserIntegral record);

    int insertSelective(UserIntegral record);

    UserIntegral selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserIntegral record);

    int updateByPrimaryKey(UserIntegral record);

  void updateByPrice(@Param("id") Integer id, @Param("price") Integer price);

    Integer selectPrice(Integer id);

  Integer selectIntegralByUserId(Integer i);

  void updateBySale(@Param("integral") Integer integral,@Param("i") Integer i);
}